package com.lzh.dlykserver.service;

import com.github.pagehelper.PageInfo;
import com.lzh.dlykserver.entity.TProduct;
import com.lzh.dlykserver.query.ProductDTO;
import com.lzh.dlykserver.query.ProductQuery;

import java.util.List;

public interface ProductService {
    List<TProduct> getAllOnSaleProduct();

    PageInfo<TProduct> getProducts(Integer current,  ProductQuery productQuery);

    int addProduct(ProductDTO productDTO);

    int editProduct(ProductDTO productDTO);

    TProduct getProductById(Integer id);

    int deleteProduct(Integer id);

    int batchDeleteProduct( List<String> idList);
}
